﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;
namespace RecruitStudents.Utility.Model
{
    #region 专业细分（考官类型）小项
    public class TB_Sys_SpecialityKinds_Detail_Sub : Entity
    {
        public TB_Sys_SpecialityKinds_Detail_Sub() : base("TB_Sys_SpecialityKinds_Detail_Sub") { }

        #region Model
        private string _SpecialityKinds_DetailNO;
        private string _SpecialityKinds_Detail_SubNO;
        private string _SpecialityKinds_Detail_SubName;
        private string _IsActive;
        private string _ExamYear;
        /// <summary>
        /// 专业细分编码
        /// </summary>
        public string SpecialityKinds_DetailNO
        {
            get { return _SpecialityKinds_DetailNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKinds_DetailNO, _SpecialityKinds_DetailNO, value);
                this._SpecialityKinds_DetailNO = value;
            }
        }
        /// <summary>
        /// 专业细分小项编码
        /// </summary>
        public string SpecialityKinds_Detail_SubNO
        {
            get { return _SpecialityKinds_Detail_SubNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKinds_Detail_SubNO, _SpecialityKinds_Detail_SubNO, value);
                this._SpecialityKinds_Detail_SubNO = value;
            }
        }
        /// <summary>
        /// 专业细分小项名称
        /// </summary>
        public string SpecialityKinds_Detail_SubName
        {
            get { return _SpecialityKinds_Detail_SubName; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKinds_Detail_SubName, _SpecialityKinds_Detail_SubName, value);
                this._SpecialityKinds_Detail_SubName = value;
            }
        }
        /// <summary>
        /// 是否有效（1：开启   0：关闭）
        /// </summary>
        public string IsActive
        {
            get { return _IsActive; }
            set
            {
                this.OnPropertyValueChange(_.IsActive, _IsActive, value);
                this._IsActive = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.SpecialityKinds_DetailNO,
				_.SpecialityKinds_Detail_SubNO};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.SpecialityKinds_DetailNO,
				_.SpecialityKinds_Detail_SubNO,
				_.SpecialityKinds_Detail_SubName,
				_.IsActive,
				_.ExamYear};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._SpecialityKinds_DetailNO,
				this._SpecialityKinds_Detail_SubNO,
				this._SpecialityKinds_Detail_SubName,
				this._IsActive,
				this._ExamYear};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._SpecialityKinds_DetailNO = DataUtils.ConvertValue<string>(reader["SpecialityKinds_DetailNO"]);
            this._SpecialityKinds_Detail_SubNO = DataUtils.ConvertValue<string>(reader["SpecialityKinds_Detail_SubNO"]);
            this._SpecialityKinds_Detail_SubName = DataUtils.ConvertValue<string>(reader["SpecialityKinds_Detail_SubName"]);
            this._IsActive = DataUtils.ConvertValue<string>(reader["IsActive"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._SpecialityKinds_DetailNO = DataUtils.ConvertValue<string>(row["SpecialityKinds_DetailNO"]);
            this._SpecialityKinds_Detail_SubNO = DataUtils.ConvertValue<string>(row["SpecialityKinds_Detail_SubNO"]);
            this._SpecialityKinds_Detail_SubName = DataUtils.ConvertValue<string>(row["SpecialityKinds_Detail_SubName"]);
            this._IsActive = DataUtils.ConvertValue<string>(row["IsActive"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Sys_SpecialityKinds_Detail_Sub");
            /// <summary>
            /// 专业细分编码
            /// </summary>
            public readonly static Field SpecialityKinds_DetailNO = new Field("SpecialityKinds_DetailNO", "TB_Sys_SpecialityKinds_Detail_Sub", "专业细分编码");
            /// <summary>
            /// 专业细分小项编码
            /// </summary>
            public readonly static Field SpecialityKinds_Detail_SubNO = new Field("SpecialityKinds_Detail_SubNO", "TB_Sys_SpecialityKinds_Detail_Sub", "专业细分小项编码");
            /// <summary>
            /// 专业细分小项名称
            /// </summary>
            public readonly static Field SpecialityKinds_Detail_SubName = new Field("SpecialityKinds_Detail_SubName", "TB_Sys_SpecialityKinds_Detail_Sub", "专业细分小项名称");
            /// <summary>
            /// 是否有效（1：开启   0：关闭）
            /// </summary>
            public readonly static Field IsActive = new Field("IsActive", "TB_Sys_SpecialityKinds_Detail_Sub", "是否有效（1：开启   0：关闭）");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Sys_SpecialityKinds_Detail_Sub", "考试年度");
        }
        #endregion


    }
    #endregion
}

